package com.jk.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @author jisiqi
 * @version 1.0
 * @description: TODO  机构管理表
 * @date 2022/10/14 14:01
 */
@Data
@TableName(value = "organization")
@Document(indexName = "organization")
public class OrganizationBean {

    @Id
    @Field(value = "organizationId",type = FieldType.Integer)
    @TableId(value = "organization_id",type = IdType.AUTO)
    private   Integer  organizationId;       //机构id

    @TableField(value = "organization_img")
    private   String   organizationImg;      //机构图片

    @TableField(value = "organization_name")
    @Field(value = "organizationName",type = FieldType.Text,analyzer = "ik_max_word")
    private   String   organizationName;     //机构名称

    @TableField(value = "principal")
    private   String   principal;            //负责人姓名

    @TableField(value = "organization_phone")
    private   String   organizationPhone;    //电话

    @TableField(value = "organization_address")
    private   String   organizationAddress;  //机构地址

    @TableField(value = "organization_state")
    private   Integer   organizationState;    //状态




}
